package com.jt.www.model.remote.user;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;

/**
 * @Description:
 * @author: wephone
 * @Date: 2018/6/27 09:44
 * @ModifiedDate：
 * @Copyright:江泰保险股份有限公司
 */

public class ResourceVM {
    /**
     * 功能id
     */
    private Long id;

    /**
     * 功能编码
     */
    private String functionCode;
    /**
     * 功能名称
     */
    private String functionName;
    /**
     * 功能类型
     */
    private String functionType;

    /**
     * 是否一级菜单,Y-是，N-否
     */
    private String isRootMenu;

    /**
     * 上级节点
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private Long superiorMenuId;

    /**
     * 层级地址
     */
    private String functionHierarchy;
    /**
     * 对应的url地址
     */
    private String functionUrl;

    /**
     * 子节点
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private List<ResourceVM> children;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFunctionCode() {
        return functionCode;
    }

    public void setFunctionCode(String functionCode) {
        this.functionCode = functionCode;
    }

    public String getFunctionName() {
        return functionName;
    }

    public void setFunctionName(String functionName) {
        this.functionName = functionName;
    }

    public String getFunctionType() {
        return functionType;
    }

    public void setFunctionType(String functionType) {
        this.functionType = functionType;
    }

    public String getIsRootMenu() {
        return isRootMenu;
    }

    public void setIsRootMenu(String isRootMenu) {
        this.isRootMenu = isRootMenu;
    }

    public Long getSuperiorMenuId() {
        return superiorMenuId;
    }

    public void setSuperiorMenuId(Long superiorMenuId) {
        this.superiorMenuId = superiorMenuId;
    }

    public String getFunctionHierarchy() {
        return functionHierarchy;
    }

    public void setFunctionHierarchy(String functionHierarchy) {
        this.functionHierarchy = functionHierarchy;
    }

    public String getFunctionUrl() {
        return functionUrl;
    }

    public void setFunctionUrl(String functionUrl) {
        this.functionUrl = functionUrl;
    }

    public List<ResourceVM> getChildren() {
        return children;
    }

    public void setChildren(List<ResourceVM> children) {
        this.children = children;
    }
}
